package demo.pattern.command;

/**
 * @author : GuoFei
 * @since : 2019/6/25 17:15
 */
public class OneApplication {

    public static void main(String[] args) {
        //接收者
        CompanyArmy companyArmy = new CompanyArmy();
        //命令实现类，将接收者传入
        ConcreteCommand concreteCommand = new ConcreteCommand(companyArmy);
        ArmySuperior superior = new ArmySuperior();
        superior.setCommand(concreteCommand);
        superior.startExecuteCommand();
    }

}
